package com.tenton.pojo;

import java.util.Date;

/**
 * @Date: 2021/1/12
 * @Author: Tenton
 * @Description: 用户
 */
public class User {
    /**
     * 用户Id，主键，自增
     */
    private Integer id;
    /**
     * 用户名
     */
    private String userName;
    /**
     * 密码
     */
    private String password;
    /**
     * 邮箱
     */
    private String email;
    /**
     * 职位名称
     */
    private String prositionName;
    /**
     * 省份
     */
    private String province;
    /**
     * 城市
     */
    private String city;
    /**
     * 爱好
     */
    private String hobby;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 修改时间
     */
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPrositionName() {
        return prositionName;
    }

    public void setPrositionName(String prositionName) {
        this.prositionName = prositionName;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }


    public User(String userName, String password, String email, String province, String city, String hobby) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.province = province;
        this.city = city;
        this.hobby = hobby;
        this.createTime = new Date();
    }

    public User(String userName, String password, String email, String prositionName, String province, String city, String hobby) {
        this.userName = userName;
        this.password = password;
        this.email = email;
        this.prositionName = prositionName;
        this.province = province;
        this.city = city;
        this.hobby = hobby;
        this.updateTime = new Date();
    }

    public User() {
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", prositionName='" + prositionName + '\'' +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", hobby='" + hobby + '\'' +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
